//企业简历详情基本信息
import React, { Component } from 'react'
import {
    View,
    Text,
} from 'react-native';

import { Cresumeproject_Style as styles } from '../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';
import fmt from '../../../util/fmtDateUtil';

export default class Cresume_project extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        if (this.props.xzProjectExp != undefined) {
            return (

                <View style={styles.pro_centerall}>

                    <Text style={styles.pro_pos}>{this.props.xzProjectExp.proexpName}</Text>
                    <View style={styles.pro_eve}>
                        <Icon
                            name={'md-calendar'}
                            size={18}
                            color={'#aeaeae'} style={styles.pro_timeicon} />
                        <Text style={styles.pro_time}>{fmt(this.props.xzProjectExp.proexpBeginTime, 'yyyy-MM-dd')}</Text>
                        <Text style={styles.pro_time2}>-</Text>
                        <Text style={styles.pro_time}>{fmt(this.props.xzProjectExp.proexpEndTime, 'yyyy-MM-dd')}</Text>
                        {/* <Text style={styles.pro_time3}>（2个月）</Text> */}
                    </View>
                    <Text style={styles.pro_textlong}>

                        {this.props.xzProjectExp.proexpDuty}
                    </Text>
                    <Text style={styles.pro_textlong}>
                        {this.props.xzProjectExp.proexpDescribe}
                    </Text>

                </View>
            )
        } else {
            return null;
        }
    }
}